.main {
  background-color: #eff3fe;
  padding-top: 70px;
  min-height: 100vh;
  overflow: hidden;

  .container {
    width: 1100px;
    margin: 10px auto;
    display: flex;
    gap: 15px;

    .left {
      flex: 0 1 200px;

      padding: 24px;
      min-width: 240px;
      max-width: 240px;
      max-height: calc(100vh - 80px);

      .menuWraper {
        position: fixed;
        width: 240px;
        left: 0;
        top: 71px;
        height: calc(100vh - 80px);
        background: #fff;
        padding: 20px;
      }
    }

    .right {
      flex: 1;
    }
  }

  .menu {
    .menuItem {
      padding: 0 20px;
      height: 38px;
      line-height: 38px;
      font-size: 16px;
      overflow: hidden;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .subMenuItem {
      display: block;
      line-height: 34px;
      font-size: 13px;
      position: relative;

      &.active {
        background: rgb(86 89 254 / 5%);
        font-weight: bold;
      }

      .name {
        display: block;
        padding-left: 50px;
        cursor: pointer;
        color: #444;
        text-decoration: none;
      }

      &:hover {
        background: rgb(86 89 254 / 3%);

        .name {
          color: rgb(86 89 254 / 80%) !important;
        }
      }
    }
  }

  .list {
    list-style: none;
    min-height: calc(100vh - 120px);

    .listItem {
      display: inline-block;

      text-decoration: none;
      margin: 15px;

      width: 24%;
      position: relative;
      overflow: hidden;
      margin: 0;
      margin-bottom: 1%;
      margin-right: 1%;

      a {
        text-decoration: none;
      }

      border: 2px solid transparent;
      border-radius: 3px;

      .img {
        position: relative;
        padding-top: 134%;
        overflow: hidden;
        width: 100%;
        background: linear-gradient(90deg, #d0d8db, #e0e7ecae);

        .cover {
          position: absolute;
          z-index: 10;
          width: 100%;
          height: 100%;
          left: 0;
          top: 0;
          background: rgba($color: #000, $alpha: 20%);
          align-items: center;
          justify-content: center;
          display: none;

          .button {
            text-decoration: none;
            display: inline-block;
            padding: 10px;
            background: #647eff;
            color: #fff;
            font-size: 13px;
            border-radius: 30px;
          }
        }

        img {
          position: absolute !important;
          left: 50% !important;
          top: 50% !important;
          width: 85% !important;
          height: auto !important;
          box-shadow: -15px 16px 16px 0 rgb(64 68 77 / 32%);
          transform: translate(-50%, -50%);
        }
      }

      &:hover {
        border: 2px solid #446ef6;

        .img {
          content: "使用模版";

          .cover {
            display: flex;
          }
        }
      }

      .info {
        padding: 10px 12px;
        border-top: 1px dashed #ddd;
        border-bottom-right-radius: 5px;
        border-bottom-left-radius: 5px;
        background: #fff;

        .name {
          color: #666;
          max-width: 220px;
          overflow: hidden;
          font-weight: 400;
          font-size: 13px;
          white-space: nowrap;
          text-overflow: ellipsis;
        }

        .tags {
          display: flex;
          gap: 4px;
          margin-top: 5px;
          white-space: nowrap;

          .tag {
            margin-right: 8px;
            position: relative;
            padding: 0 4px;
            color: #446cff;
            font-size: 11px;
            line-height: 15px;
            background-color: #fff;
            border: 1px solid #dce5ff;
            border-radius: 4px;
          }
        }
      }
    }
  }

  @media screen and (max-width: 800px) {
    padding-top: 60px;
    .container {
      flex-direction: column;
      gap: 5px;
      width: 100%;
      .left {
        flex: none;
        width: 100%;
        padding: 0;

        min-width: 240px;
        background: #fff;
        max-width: 100vw;
        max-height: calc(100vh - 80px);

        .menuWraper {
          position: relative;
          overflow: hidden;
          padding: 0;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
        }
      }

      .list {
        min-height: auto;

        .listItem {
          width: 46%;
          position: relative;
          overflow: hidden;
          margin: 1.8%;
          margin-top: 0;
          .tags {
            display: none;
          }
        }
      }
    }

    .menu {
      padding: 10px;
      overflow-x: auto;

      .menuItem {
        display: none;
      }

      .menuItemWraper {
        white-space: nowrap;
        margin: 0 10px;
      }

      .subMenuItem {
        display: inline-block;
        line-height: 34px;
        font-size: 13px;
        position: relative;
        margin-right: 10px;

        &.active {
          background: rgb(86 89 254 / 5%);
          font-weight: bold;
        }

        .name {
          display: block;
          cursor: pointer;
          color: #444;
          text-decoration: none;
          padding: 4px 10px;
          white-space: nowrap;
          text-align: center;
          line-height: 1.8;
        }

        &:hover {
          background: rgb(86 89 254 / 3%);

          .name {
            color: rgb(86 89 254 / 80%) !important;
          }
        }
      }
    }
  }
}
